﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Iesi.Collections.Generic;

namespace EntityModel
{
    public class User
    {
        public virtual int UserID { get; set; }

        public virtual string UserName { get; set; }

        public virtual string Password { get; set; }

        public virtual DateTime CreateTime { get; set; }

        public virtual UserDetail Detail { get; set; }

        public virtual ISet<Order> Orders { get; set; }
    }



    public class UserDetail
    {
        public virtual User User { get; set; }

        public virtual int UserID { get; set; }

        public virtual DateTime LastUpdated { get; set; }

        public virtual PersonName Name { get; set; }
    }

    public class PersonName
    {
        public virtual string FirstName { get; set; }

        public virtual string LastName { get; set; }
    }
}
